package cz.spock.parser.entity;

import java.util.List;

import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.Transient;

import com.googlecode.objectify.annotation.Unindexed;

/**
 * represents set of rules - should wrap all data needed for parser
 * 
 * @author miso
 */
@Entity
public class RuleSet {
    
    @Id
    private Long id;
    
    private String name; // unique
    @Transient
    private List<TripletPattern> rules;
    @Unindexed
    private List<Long> rulesId;
    @Unindexed
    private String json;
    
    
    public Long getId() {
        return id;
    }
    public void setId(Long id) {
        this.id = id;
    }
    public String getName() {
        return name;
    }
    public void setName(String name) {
        this.name = name;
    }
    public List<TripletPattern> getRules() {
        return rules;
    }
    public void setRules(List<TripletPattern> rules) {
        this.rules = rules;
    }
    public List<Long> getRulesId() {
        return rulesId;
    }
    public void setRulesId(List<Long> rulesId) {
        this.rulesId = rulesId;
    }
    public String getJson() {
        return json;
    }
    public void setJson(String json) {
        this.json = json;
    }

}
